const app = getApp()

Page({
  data: {
    user: {}
  },
  bindViewTap: function () {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  onLoad: function () {
    this.setData({
      user: app.user ? app.user : {}
    })
  },
  goToVisit() {
    var user = app.user

    if (user && user.status == 1) {
      wx.navigateTo({
        url: '../visiter/visiter',
      })
    } else {
      wx.navigateTo({
        url: '../work/work',
      })
    }

  },
  getVisitMessage(){
    wx.navigateTo({
      url: '../historyList/historyList',
    })
  },
  getPersonal(){
    
  }
})
